<?php
use yii\helpers\Html;
use \yii\widgets\ActiveForm;
/**
 * 用户意见反馈
 *
 */
?>

<?php $this->beginPage();?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>AI FUTURE 意见反馈中心</title>
</head>
<body>
<?php $this->beginBody();?>
	<style type="text/css">
		.labelTitle {
    font-size: 44px;
			color: #1E90FF;
		}
		.hr {
    background: #1E90FF;
    height: 3px;
		}
		.edit {
    width: 97%;
    height: 90px;
			font-size: 24px;
			color: #1E90FF;
			border-radius: 6px;
			border-color: #1E90FF;
			padding: 13px;
		}
		.editPeople {
    width: 97%;
    height: 40px;
			border-color: #1E90FF;
			border-radius: 6px;
			border-width: 1px;
			padding: 6px;
			font-size: 22px;
		}
		.buttonSend {
    width: 37%;
			height: 44px;
			border-radius: 10px;
			background: #1E90FF;
			color: #fff;
			font-size: 20px;
			margin-left: 30%;
            margin-right: 30%;
		}

		.table {
    border-radius: 2px;
			border-color: #110000;
			width: 95%;
			word-break:break-all;
		}
		.table_caption {
    text-align: center;
			color: red;
			font-size: 24px;
		}
		.td {
    width: 95%;
    border: solid 1px #a0c6e5;
			height: 20px;
			padding: 10px;
		}
		.tr {
    text-align: center;
			border-color: red;
			border-radius: 3px;
		}
	</style>

    <div id="box" style="width: 100%">
        <?php $form = ActiveForm::begin([
            'id'=>'login-form',
            'method'=>'post',
            'fieldConfig' => [
                'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 layui-bg-red\">{error}</div>",
            ]]) ?>
        <div>
            <label class="labelTitle">意见反馈</label>
            <hr class="hr">
            <?php echo $form->field($model,'content')->textarea(['class'=>"edit",'placeholder'=>"发表意见"])->label(false);?>
            <br>
            <?php echo $form->field($model,'name')->textInput(['class'=>"editPeople",'placeholder'=>"发表人"])->label(false);?>
            <br>
            <?php echo Html::submitButton('发表',['class'=>"buttonSend"]);?>
        </div>
        <?php ActiveForm::end()?>

        <hr class="hr">
        <table class="table" align="center">
            <caption class="table_caption">意见日志(最新)</caption>

            <?php foreach($Feedback as $v):?>
                <tr>
                    <td class="td">
                        <label style="font-size: 20px;color: #EEAD0E"><?php echo $v['name'];?>:</label>
                        <br>
                        <label style="font-size: 19px;margin-left: 30px;"><?php echo $v['content'];?></label>
                    </td>
                </tr>
            <?php endforeach;?>
        </table>

		<p style="width: 100%;background: gray;color: #fff;font-size: 15px;text-align: center;margin-top: 40px">AI FUTURE 意见反馈中心</p>
	</div>

<script type="text/javascript">
    new Vue({
        el: '#box',
        data: {
            myData:[],
            name:'',
            content:'',
            numIndex:'1'

        }
    })
</script>
<?php $this->endBody();?>
</body>
</html>
<?php $this->endPage();?>
